package com.gxy.learn.backup.config;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: Gaoxueyong
 * @createDate: 2023/1/11 11:16
 */
@Slf4j
@Component
public class Runner implements CommandLineRunner {
    @Autowired
    private ValueConfig valueConfig;
    @Autowired
    private AutoTableConfig autoTableConfig;
    @Autowired
    private ConfigurationPropertiesConfig configurationPropertiesConfig;
    @Override
    public void run(String... args) throws Exception {
//        Map<String, List<CommonTableHeadr>> assessCommmonMap = autoTableConfig.getAssessCommmonMap();
//        Map<String, List<CommonTableHeadr>> promotionCommmonMap = autoTableConfig.getPromotionCommmonMap();
//        System.out.println("111");
        log.info("configurationPropertiesConfig = {}", JSONObject.toJSON(configurationPropertiesConfig));
    }
}
